package com.jboost.hyk.common.entity;


import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.jboost.common.system.base.entity.JBoostEntity;

/**
 * @Description: 类目管理
 * @Author: cxn
 * @Date:   2022-10-14
 * @Version: V1.0
 */
@Data
@TableName("hyk_category")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hyk_category对象", description="类目管理")
public class Category extends JBoostEntity{

    @TableLogic
    /**delFlag*/
    @ApiModelProperty(value = "delFlag")
    private java.lang.Integer delFlag;

    /**父类目id，null则为根节点*/
    @ApiModelProperty(value = "父类目id，null则为根节点")
    private java.lang.String parentId;

    /**类目名称*/
    @ApiModelProperty(value = "类目名称")
    private java.lang.String name;

    /**主图的文件 id*/
    @ApiModelProperty(value = "主图的文件 id")
    private java.lang.String mainPicId;

    /**valid-正常；invalid-停用*/
    @ApiModelProperty(value = "valid-正常；invalid-停用")
    private java.lang.String status;

    /**是否有子节点：0-否；1-是；*/
    @ApiModelProperty(value = "是否有子节点：0-否；1-是；")
    private java.lang.Integer hasChild;

    /**层级，1开始*/
    @ApiModelProperty(value = "层级，0开始")
    private java.lang.Integer grade;

}
